package demo.mybatis;

import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;

public interface UserDetailMapper {

	@Select("select username, password, role from user_detail where username=#{username}")
	@Results({
		@Result(property="username", column="username"),
		@Result(property="password", column="password"),
		@Result(property="role", column="role")
	})
	UserDetail getUser(String username);
}
